/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.vasthu.core.dao;

import com.vasthu.api.dao.BillInfoDAO;
import com.vasthu.api.domain.BillInfo;
import com.vasthu.utility.VstDBManager;
import java.sql.*;
import java.util.List;
import org.apache.log4j.Logger;

/**
 *
 * @author moremada
 */
public class BillInfoDAOImpl implements BillInfoDAO {

    static Logger logger = Logger.getLogger(BillInfoDAOImpl.class);

    @Override
    public boolean insertBillInfo(BillInfo billInfo) {
        if (billInfo == null) {
            return false;
        }
        Connection con = VstDBManager.get().getConnection();
        PreparedStatement pst = null;

        try {
            pst = con.prepareStatement("");

            //pst.setString(1, item.getItemCode());
            pst.executeUpdate();

        } catch (Exception ex) {
            System.out.println("ERROR : " + ex);
        } finally {
            VstDBManager.get().close();
        }
        return true;
    }
}
